package com.lujianfei.powerinput.utils;

import android.util.Log;

public class CastUtils {
    private static final String TAG = "CastUtils";
    @SuppressWarnings("unchecked")
    public static <T> T cast(Object obj) {
        try {
            return (T) obj;
        }catch (Exception e){
            Log.e(TAG,""+e);
        }
        return null;
    }
}
